/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.perficient.ibuzz.validation;

/**
 *
 * @author Trainning
 */
public class CharacterValidator {

    public final static int CHAR_MAX_NUMBER = 140;


    public CharacterValidationResult validate(String characters) {
        CharacterValidationResult result = new CharacterValidationResult();
        int charNumber = characters.length();
        result.setLeftCharNumber(CHAR_MAX_NUMBER - charNumber);
        result.setIsExceeded(charNumber>CHAR_MAX_NUMBER);
        return result;
    }
}
